#include <cstdlib>
#include <iostream>

#include "Parser.h"
#include "Network.h"
#include "Simulation.h"

using namespace std;

int main(int argc, char *argv[])
{
	if(argc == 1)
	{
		cout << "A filename must be given" << endl;
		return 1;
	}
	Parser parser;
	Network *pNetwork = parser.parse(argv[1]);

	Robot robot(*pNetwork->getRoom(0), "celine");

	Simulation simulation(robot);

	robot.takeExit(0);

	simulation.run();

	delete(pNetwork);

	return 0;
}
